package com.hq.ims.data.entityenum;


import com.hq.web.penum.IBaseEnum;

/**
 * 工作流监听器类型
 * <p>
 * 工作流
 */
public enum EnumWorkFlowListenerType implements IBaseEnum {

    Global(0, "全局监听器"),

    Task(1, "任务监听器"),

    GlobalAndTask(2, "全局和任务通用监听器"),

    ;

    private final int code;
    private final String typeName;
    EnumWorkFlowListenerType(int code, String typeName) {
        this.code = code;
        this.typeName = typeName;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getTypeName() {
        return typeName;
    }

    @Override
    public String getValue() {
        return typeName;
    }
}
